#pragma once

template <class T>
class node
{
private:
	T data;
	node<T>* next;
public:

	node()
	{
		next = nullptr;
	}

	node(T data)
	{
		this->data = data;
		next = nullptr;
	}

	~node()
	{
	}

	void setNext(node<T>* ptr)
	{
		next = ptr;
	}

	node<T> * Next()
	{
		return next;
	}

	T getData()
	{
		return data;
	}

	void setData(T data)
	{
		this->data = data;
	}
};

